﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Diablo3.Engine.Property
{
    /// <summary>
    /// 远程减伤
    /// </summary>
    public class MissileDamageReduction : ItemsProperty, IAffecteMissileDamageReduction
    {
        public MissileDamageReduction() { }

        public MissileDamageReduction(Double value)
        {
            Value = value;
        }

        /// <summary>
        /// 远程减伤值
        /// </summary>
        public Double Value { get; set; }

        public override string Des
        {
            get { return String.Format("+{0}% 远程减伤",Value); }
        }

        #region IAffecteMissileDamageReduction 成员

        double IAffecteMissileDamageReduction.Affecte(double source)
        {
            return source + Value;
        }

        #endregion
    }
}
